package com.bdqn.t320.service;

import com.bdqn.t320.pojo.Attach;
import com.bdqn.t320.pojo.Page;
import com.bdqn.t320.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserService {

    public List<SysUser> getUserListBiz(Page page, SysUser sysUser);

    public Integer getCountBiz(SysUser sysUser);

    public int add(SysUser sysUser);

    public boolean adds(List<SysUser> list);

    SysUser loginBiz(String userCode);

    SysUser viewBiz(Integer id);

    int userCodeExistBiz(String userCode);

    int deleteByIdBiz(Integer id);

    //保存用户和附件 两张表的数据
    public boolean addUserAttach(SysUser sysUser, Attach attach);

    int updateBiz(SysUser user);
}
